package com.zhentao.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zhentao.model.dto.system.SysRoleDto;
import com.zhentao.model.entity.system.SysRole;

import java.util.Map;

/**
* @author 懒阳阳
* @description 针对表【sys_role(角色)】的数据库操作Service
* @createDate 2025-02-08 14:45:04
*/
public interface SysRoleService extends IService<SysRole> {

    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    Map<String, Object> findAllRoles(Long userId);
}
